package five1;

public class SuperClass {
	void showMyPosition() {
		System.out.println("I am in superclass!");
		System.out.println("I will go back now ...");
	}
	public static void main(String args[]) {
		SubClass son = new SubClass();
		son.showMyPosition();
	}
}
class SubClass extends SuperClass{
	void showMyPosition() {
		System.out.println("At first I will go to superclass...");
		super.showMyPosition();
		System.out.println("Now I have moved to subclass!");
	}
}